cmake_minimum_required(VERSION 3.5)

# include(${CMAKE_SOURCE_DIR}/cmake/mstar.cmake)
# include(${CMAKE_SOURCE_DIR}/cmake/hisi.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/pc.cmake)
PROJECT(WebRtsp)

SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY  "${CMAKE_SOURCE_DIR}/bin/")
INCLUDE_DIRECTORIES(
    ${CMAKE_SOURCE_DIR}/include/
    ${CMAKE_SOURCE_DIR}/srcClient/
    ${CMAKE_SOURCE_DIR}/srcServer/
    ${CMAKE_SOURCE_DIR}/thirdpart/mongoose
    ${CMAKE_SOURCE_DIR}/thirdpart/libflv/include
    ${CMAKE_SOURCE_DIR}/thirdpart/
)
LINK_DIRECTORIES(
    ${CMAKE_SOURCE_DIR}/lib/
)

add_subdirectory(thirdpart/live555)
add_subdirectory(thirdpart/mongoose)
add_subdirectory(thirdpart/libflv)
add_subdirectory(thirdpart/json)
aux_source_directory(${CMAKE_SOURCE_DIR}/src/ demoSRC_DIR)
add_executable(${PROJECT_NAME}  ${demoSRC_DIR})
target_link_libraries(${PROJECT_NAME} rtsp mongoose pthread flv json)